<template>
	
	<view class="page-content infinite-scroll-content">
	</view>
</template>

<script>
	var self;
	export default {
		data() {
			return {
				loginName: "",
				searchtext:""
			}
		},
		onLoad(options) {
			if(options.Search!="undefined"){
				this.searchtext=options.Search;
				}
			// #ifdef APP-PLUS
				let webView = this.$mp.page.$getAppWebview();
					webView.setTitleNViewSearchInputText(this.searchtext);
				// #endif
				// #ifdef H5
				let inputSearch=document.querySelector('.uni-input-input[type=search]');
				var evt = new InputEvent('input', {
					inputType: 'insertText',
					data: this.searchtext,
					dataTransfer: null,
					isComposing: false
				});
				if(inputSearch){
					inputSearch.value = this.searchtext;
					inputSearch.dispatchEvent(evt);
				}
				// #endif
				
			},
		onNavigationBarButtonTap(val) {
			uni.navigateTo({
				url: '../home/home?Search=' + this.searchtext,
			});
		    },
		    onNavigationBarSearchInputChanged (val) {
				this.searchtext=val.text;
		    }    
	}
</script>

<style>
	
</style>
